//package mock;
//
//import bean.*;
//
//import java.util.List;
//
//public class MysqlDataGenerator {
//    public static void main(String[] args) {
//        try {
//            // 初始化数据库连接
//            DataInserter inserter = new DataInserter("jdbc:mysql://192.168.10.102:3306/driver", "root", "000000");
//
//            // 生成数据
//            List<City> cities = CityDataGenerator.generateCities(10);
////            List<PriceRule> priceRules = DataGenerator.generatePriceRules(10);
////            List<Driver> drivers = DataGenerator.generateDrivers(10);
////            List<Car> cars = DataGenerator.generateCars(10);
////            List<Passenger> passengers = DataGenerator.generatePassengers(10);
////            List<OrderInfo> orderInfos = DataGenerator.generateOrderInfos(10);
////            List<OrderDetail> orderDetails = DataGenerator.generateOrderDetails(10);
//
//
//            // 插入数据
//            inserter.insertCities(cities);
////            inserter.insertPriceRules(priceRules);
////            inserter.insertDrivers(drivers);
////            inserter.insertCars(cars);
////            inserter.insertPassengers(passengers);
////            inserter.insertOrderInfos(orderInfos);
////            inserter.insertOrderDetails(orderDetails);
//
//            // 关闭连接
//            inserter.close();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//
//    }
//}
